// 导入request请求工具类
import tui from '../../common/httpRequest'

import {
    getBaseUrl,
    requestUtil
} from '../../utils/request.js';
// import {} from "../../utils/api.js";
import regeneratorRuntime from "../../lib/runtime";


Page({
    data: {
        images: [{
                'image': 'https://tva2.sinaimg.cn/large/006uDxEmly8h1fa8tnpdyj31hc0u0tc9.jpg',
                'target': ''
            }, {
                'image': 'https://tva4.sinaimg.cn/large/006uDxEmly8h0azde7xutj30p00h6whh.jpg',
                'target': ''
            },
            {
                'image': 'https://tva3.sinaimg.cn/large/006uDxEmly8h0azbqcps5j31hb0u0ag8.jpg',
                'target': ''
            },
            {
                'image': 'https://tva1.sinaimg.cn/large/006uDxEmly8h0azczepsij31960u0n9j.jpg',
                'target': ''
            },
            {
                'image': 'https://s1.ax1x.com/2022/03/24/q8mLI1.jpg',
                'target': ''
            }
        ],

        content: '欢迎同学进入顺易通，拥抱顺易通，为您带来更优质服务，如果觉得不错，可以推荐给身边的朋友',
    },
    onLoad: function (options) {

        this.getGoodsList()
    },

    async getGoodsList() {
        // const res = await this.$myRequest({
        //   url: '/image/swiper/1.jpg'
        // })
        // this.setData({
        //   images:
        // })
        // const result = await requestUtil({
        //   url: '/product/swiper',
        //   method: "GET"
        // });
        // const baseUrl = getBaseUrl();
        // this.setData({
        //   swiperList: result.message,
        //   baseUrl
        // })

    },
    // 页面跳转
    yiqing() {
        tui.href('../../Packages/page1/pages/index/index')
    },
    topic() {
        wx.switchTab({
            url: '/pages/topic_module/topic/topic'
        })
    },
    serve() {
        wx.navigateTo({
            url: '/pages/home_module/organization/index'
        })
    },
    biaobai() {
        wx.navigateTo({
            url: '/pages/home_module/biaobai/biaobai'
        })
    },

    serve() {
        wx.navigateTo({
            url: '/pages/home_module/fuwu/fuwu'
        })
    },
    kuaidi() {
        wx.navigateTo({
            url: '/pages/home_module/kuai/kuai'
        })
    },
    resource() {
        wx.navigateTo({
            url: '/pages/home_module/resource/resource'
        })
    },
    learn() {
        wx.navigateTo({
            url: '../../Packages/page1/pages/learn/learn'
        })
    },
    meeting() {
        tui.href('../../Packages/page1/pages/index/index')
    },
    lovealarm() {
        wx.navigateTo({
            url: '/pages/home_module/lovealarm/index'
        })
    },
    run() {
        wx.navigateTo({
            url: '/pages/home_module/run/index/index'
        })
    },
    view() {
        wx.navigateTo({
            url: '/pages/home_module/view/view'
        })
    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})